<template>
  <page-card title="应用授权"
             :need-back="true">
    <a-tabs :activeKey="activeKey"
            @change="change">
      <a-tab-pane key="1"
                  tab="应用授权机构">
        <AppAuthUnit v-if="activeKey== '1'" />
      </a-tab-pane>
      <a-tab-pane key="2"
                  tab="应用授权人员"
                  force-render>
        <AppAuthUser v-if="activeKey== '2'" />
      </a-tab-pane>
    </a-tabs>
  </page-card>
</template>
<script>
import AppAuthUnit from './AppAuthUnit.vue'
import AppAuthUser from './AppAuthUser.vue'

export default {
  components: {
    AppAuthUnit, AppAuthUser
  },
  data () {
    return {
      activeKey: '1'
    }
  },
  created () { },
  mounted () {

  },
  methods: {
    change (key) {
      this.activeKey = key
    }
  }

}
</script>

<style scoped>
</style>
